home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZINTDIR.C < prev    next >
Text File  |  1989-04-09  |  721b  |  22 lines

  1. #include <jzdirect.h>
  2. /*
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │jzintdir                                     │
  5. │Initialize the directory stack structure before the first call to jzpushdir │
  6. │Synopsis:                                     │
  7. │  jzintdir(&whead);                                 │
  8. │  jzpshdir(&whead);                                 │
  9. │  chdir("\\");                                                              │
  10. │  ...                                         │
  11. │  jzpshdir(&whead);                                 │
  12. │  jzpopdir(&whead);                                 │
  13. └────────────────────────────────────────────────────────────────────────────┘
  14. */
  15.  
  16. jzintdir(fhead)
  17. TDIRHEAD *fhead;
  18. {
  19.   fhead->numitems = 0;            /* init stack to zero items */
  20.   fhead->first = fhead->last = 0;    /* init pointers */
  21. }
  22.